package com.maket.scxx.domain;


import com.ruoyi.common.core.web.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 产品表
 * @TableName cp_product
 */
public class CpProduct extends BaseEntity {
    /**
     * 产品编码
     */
    private String cpCode;

    /**
     * 产品名称
     */
    private String cpName;

    /**
     * 产品品牌
     */
    private String cptypeCode;

    /**
     * 产品分类
     */
    private String cpTypecode;

    private String cpTypeName;

    public String getCpTypeName() {
        return cpTypeName;
    }

    public void setCpTypeName(String cpTypeName) {
        this.cpTypeName = cpTypeName;
    }

    /**
     * 产品型号
     */
    private String cpType;

    /**
     * 单位
     */
    private String dwCode;

    /**
     * 产品类型
     */
    private String cpLxcode;

    /**
     * 是否启用
     */
    private Integer isUse;

    /**
     * 是否删除
     */
    private Integer isDelete;

    /**
     * 创建人
     */
    private String cpCreate;

    /**
     * 创建时间
     */
    private Date cpCreatetime;

    /**
     * 修改时间
     */
    private Date cpUpdatetime;

    private static final long serialVersionUID = 1L;

    /**
     * 产品编码
     */
    public String getCpCode() {
        return cpCode;
    }

    /**
     * 产品编码
     */
    public void setCpCode(String cpCode) {
        this.cpCode = cpCode;
    }

    /**
     * 产品名称
     */
    public String getCpName() {
        return cpName;
    }

    /**
     * 产品名称
     */
    public void setCpName(String cpName) {
        this.cpName = cpName;
    }

    /**
     * 产品品牌
     */
    public String getCptypeCode() {
        return cptypeCode;
    }

    /**
     * 产品品牌
     */
    public void setCptypeCode(String cptypeCode) {
        this.cptypeCode = cptypeCode;
    }

    /**
     * 产品分类
     */
    public String getCpTypecode() {
        return cpTypecode;
    }

    /**
     * 产品分类
     */
    public void setCpTypecode(String cpTypecode) {
        this.cpTypecode = cpTypecode;
    }

    /**
     * 产品型号
     */
    public String getCpType() {
        return cpType;
    }

    /**
     * 产品型号
     */
    public void setCpType(String cpType) {
        this.cpType = cpType;
    }

    /**
     * 单位
     */
    public String getDwCode() {
        return dwCode;
    }

    /**
     * 单位
     */
    public void setDwCode(String dwCode) {
        this.dwCode = dwCode;
    }

    /**
     * 产品类型
     */
    public String getCpLxcode() {
        return cpLxcode;
    }

    /**
     * 产品类型
     */
    public void setCpLxcode(String cpLxcode) {
        this.cpLxcode = cpLxcode;
    }

    /**
     * 是否启用
     */
    public Integer getIsUse() {
        return isUse;
    }

    /**
     * 是否启用
     */
    public void setIsUse(Integer isUse) {
        this.isUse = isUse;
    }

    /**
     * 是否删除
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 是否删除
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * 创建人
     */
    public String getCpCreate() {
        return cpCreate;
    }

    /**
     * 创建人
     */
    public void setCpCreate(String cpCreate) {
        this.cpCreate = cpCreate;
    }

    /**
     * 创建时间
     */
    public Date getCpCreatetime() {
        return cpCreatetime;
    }

    /**
     * 创建时间
     */
    public void setCpCreatetime(Date cpCreatetime) {
        this.cpCreatetime = cpCreatetime;
    }

    /**
     * 修改时间
     */
    public Date getCpUpdatetime() {
        return cpUpdatetime;
    }

    /**
     * 修改时间
     */
    public void setCpUpdatetime(Date cpUpdatetime) {
        this.cpUpdatetime = cpUpdatetime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CpProduct other = (CpProduct) that;
        return (this.getCpCode() == null ? other.getCpCode() == null : this.getCpCode().equals(other.getCpCode()))
            && (this.getCpName() == null ? other.getCpName() == null : this.getCpName().equals(other.getCpName()))
            && (this.getCptypeCode() == null ? other.getCptypeCode() == null : this.getCptypeCode().equals(other.getCptypeCode()))
            && (this.getCpTypecode() == null ? other.getCpTypecode() == null : this.getCpTypecode().equals(other.getCpTypecode()))
            && (this.getCpType() == null ? other.getCpType() == null : this.getCpType().equals(other.getCpType()))
            && (this.getDwCode() == null ? other.getDwCode() == null : this.getDwCode().equals(other.getDwCode()))
            && (this.getCpLxcode() == null ? other.getCpLxcode() == null : this.getCpLxcode().equals(other.getCpLxcode()))
            && (this.getIsUse() == null ? other.getIsUse() == null : this.getIsUse().equals(other.getIsUse()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()))
            && (this.getCpCreate() == null ? other.getCpCreate() == null : this.getCpCreate().equals(other.getCpCreate()))
            && (this.getCpCreatetime() == null ? other.getCpCreatetime() == null : this.getCpCreatetime().equals(other.getCpCreatetime()))
            && (this.getCpUpdatetime() == null ? other.getCpUpdatetime() == null : this.getCpUpdatetime().equals(other.getCpUpdatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCpCode() == null) ? 0 : getCpCode().hashCode());
        result = prime * result + ((getCpName() == null) ? 0 : getCpName().hashCode());
        result = prime * result + ((getCptypeCode() == null) ? 0 : getCptypeCode().hashCode());
        result = prime * result + ((getCpTypecode() == null) ? 0 : getCpTypecode().hashCode());
        result = prime * result + ((getCpType() == null) ? 0 : getCpType().hashCode());
        result = prime * result + ((getDwCode() == null) ? 0 : getDwCode().hashCode());
        result = prime * result + ((getCpLxcode() == null) ? 0 : getCpLxcode().hashCode());
        result = prime * result + ((getIsUse() == null) ? 0 : getIsUse().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        result = prime * result + ((getCpCreate() == null) ? 0 : getCpCreate().hashCode());
        result = prime * result + ((getCpCreatetime() == null) ? 0 : getCpCreatetime().hashCode());
        result = prime * result + ((getCpUpdatetime() == null) ? 0 : getCpUpdatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cpCode=").append(cpCode);
        sb.append(", cpName=").append(cpName);
        sb.append(", cptypeCode=").append(cptypeCode);
        sb.append(", cpTypecode=").append(cpTypecode);
        sb.append(", cpType=").append(cpType);
        sb.append(", dwCode=").append(dwCode);
        sb.append(", cpLxcode=").append(cpLxcode);
        sb.append(", isUse=").append(isUse);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", cpCreate=").append(cpCreate);
        sb.append(", cpCreatetime=").append(cpCreatetime);
        sb.append(", cpUpdatetime=").append(cpUpdatetime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}